package com.cgbl.cg.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.cgbl.cg.R
import com.robot.base.model.CourseBean
import com.robot.base.model.CourseInfoBean
import com.robot.base.utils.pic.ImageLoaderUtils

class CourseAdapter : BaseQuickAdapter<CourseBean, BaseViewHolder>(R.layout.app_item_course) {

    override fun convert(holder: BaseViewHolder, item: CourseBean) {
        ImageLoaderUtils.displayRound(context,holder.getView(R.id.iv_course_img),item.courseCoverImage,4)
        holder.setText(R.id.tv_title,item.courseName)
        holder.setText(R.id.tv_course_hour,"共${item.classHour}课时")
    }
}